import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// 导入全局样式
import '@/styles/index.scss'

// 导入 vant 组件库
import vant from 'vant' 

// 引入组件样式
import 'vant/lib/index.css';

// 导入 vant 组件库的移动端事件适配
import '@vant/touch-emulator'

// 导入自己的插件库
import Plugin from '@/utils/Plugin'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(vant)
app.use(Plugin)
// 注册全局组件
app.mount('#app')
